package com.bckj.fastboot.core.extra.extpt;

import java.util.HashMap;
import java.util.Map;

@SuppressWarnings("unchecked")
public class DynamicExtPtRepository {

    private final Map<String, Object> extPtMap = new HashMap<>();

    public void put(String key, Object value) throws ClassNotFoundException {
        extPtMap.put(key, value);
    }

    public <T> T get(String beanName) {
        return (T) extPtMap.get(beanName);
    }
}
